<!--打赏与评论相关-->
<!--弹层显示RMB打赏列表-->
<div class="MoreInfoBox" style="display:none;">
	<div class="BackBox" onclick="$('.MoreInfoBox').fadeOut();"></div>
	<div class="ShowinfoBox">
		<div class="h"><span>用户RMB打赏列表</span></div>
		<div class="ListBox topic_reword_wapmore001">
{qb:tag name="topic_reword_wapmore001" js="topic_reword_wapmore001" union="aid=id,rid" rows="30" class="app\bbs\model\Member@get_label"}
			<ul>
				<li class="icon"><a href="{:get_url('user',$rs['uid'])}"><img src="{$rs.icon}" onerror="this.src='__STATIC__/images/nobody.gif'"></a></li>
				<li class="info"><span>{$rs.username}</span><em>{$rs.time}</em></li>
				<li class="yen">打赏<span>{$rs.money}</span>元</li>
			</ul>
{/qb:tag}
		</div>
		<div class="closeBox"><span onclick="$('.MoreInfoBox').fadeOut();">关闭</span></div>
	</div>
</div>
<!--弹层显示RMB打赏列表-->

<!--评论表单开始-->
<div style="display:none;" class="comment-box">
	<ul class="replayBox">
		<ol><textarea placeholder="请输入评论内容"></textarea></ol>
		<li class="btnli">
			<i onclick="open_upfile_images();" class="fa fa-photo">
				<em class="images_num choose_num">3</em>
				<input type="hidden" name="picurl" class="atc_picurl">
			</i>
			<i onclick="open_upfile_mv();" class="fa fa-video-camera">
				<em class="mv_num choose_num">1</em>
				<input type="hidden" name="mvurl" class="atc_mvurl">
			</i>			
			<button onclick="ajax_post();">确认提交</button>
		</li>
		<li style="text-align:left;margin-bottom:10px;">
			{for start="1" end="23"}
			<em onclick="choose_face(this,'[face{$i}]')"><img src="__STATIC__/images/qqface/{$i}.gif"></em>
			{/for}
		</li>
		<li><!--<button onclick="ajax_post();">确认提交</button><span onclick="layer.closeAll();">取消</span>--></li>
	</ul>
</div>
<!--评论表单结束-->

<!--评论的打赏列表开始-->
<div style="display:none;" class="reply_reward_page1">
	{qb:tag name="reply_reward_page1" val="listdb" js="reply_reward_page1" rows="3" union="aid,rid" class="app\bbs\model\Member@get_label"}
		<dl>								
			<dt>
			{volist name="listdb" id="rs"}
			<a href="{:get_url('user',$rs['uid'])}"><span><img src="{$rs.icon}" onerror="this.src='__STATIC__/images/nobody.gif'"></span><em>{$rs.money}</em><label>元</label></a>
			{/volist}
			</dt>								
			<dd onclick="show_more_reward({$rs.aid},{$rs.rid});$('.MoreInfoBox').fadeIn();">更多<i class="fa fa-angle-right"></i></dd>
		</dl>
	{/qb:tag}
</div>
<!--评论的打赏列表结束-->

<script type="text/javascript">
//显示更多打赏
function show_more_reward(aid,rid){
	var url = "{qb:url name='topic_reword_wapmore001' /}1&aid=" + aid + '&rid=' + rid;
	$.get(url,function(res){
		if(res.code==0){
			$(".topic_reword_wapmore001").html(res.data);			
		}else{
			layer.msg(res.msg);
		}	
	});
}

//评论默认显示的部分打赏
$(".reply_reward").each(function(){
	var that = $(this);
	var url = "{qb:url name='reply_reward_page1' /}1&aid={$id}&rid=" + $(this).data('id')
	$.get(url,function(res){
		if(res.code==0){
			that.html(res.data);
		}
	});
});
</script>